// 混合器
@mixin ellipsis { // 字体省略 一行
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@mixin flex-center { // 上下左右居中
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}
@mixin flex-grow { // 某块位置占满
    display: flex;
    display: -webkit-flex;
    &__grow {
        flex-grow:1;
    }
    &__nowrap {
        white-space: nowrap;
    }
}
@mixin scroll-y { // 美化滚动条 Y轴滚动
    overflow-y: scroll;
    overflow-x: hidden;
    &::-webkit-scrollbar {
        width:8px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: #0066ff;
    }
    &::-webkit-scrollbar-track {
        background-color: none;
    }
}